<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			*{
				margin: 0px;
				padding: 0px;
			}
			img{
				width: 150px;
			}
			.photo{
				height: 150px;
				padding-top: 50px;
				text-align: center;
				background-color: rgb(96,128,170,0.3);
			}
			body{
				background-image: url(../img/images/1.jpg);
			}
		</style>
		<script type="text/javascript">
			window.onload = function(){
				var imgs = document.getElementsByTagName("img");
				for(var i = 0; i < imgs.length; i++){
					imgs[i].onclick = function(){
						var imgSrc = this.src;
						document.body.style.backgroundImage = "url(" + imgSrc + ")";
					}
				}
			}
	</script>
	</head>
	<body>
		<div class="photo">
			<img src="../img/images/1.jpg" />
			<img src="../img/images/2.jpg" />
			<img src="../img/images/3.jpg"  />
			<img src="../img/images/4.jpg" />
			<img src="../img/images/5.jpg"  />
		</div>
	</body>
</html>
